Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASCII-145] Update pkg/status/render to only handle rendering logic #20824

Merged
merged 22 commits into from
Nov 23, 2023

Conversation

GustavoCaso
Copy link
Member

@GustavoCaso GustavoCaso commented Nov 13, 2023

What does this PR do?

The PR builds on top of the work done on #20776

Ensure the status/render package mainly deals with the rendering responsibility.
The changes within the PR ensure no extra conversation nor check if a feature is enabled with the render package. Also, remove the indirection created of having different key names on the templates than the ones used when fetching the data.

This work will be convenient to continue extracting the different status sub-packages.
The end goal is that each sub-package is responsible for fetching and rendering the information. by making the render package only handle rending behaviour, it is going to be easier to extract this functionality in the future

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

The output of the status commands works as expected.

Normal agent

  • agent status
  • agent launch-gui

Cluster agent

  • agent status

Process agent

  • /opt/datadog-agent/embedded/bin/process-agent status

Security Agent

  • agent status

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
  • A release note has been added or the changelog/no-changelog label has been applied.
  • Changed code has automated tests for its functionality.
  • Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
  • At least one team/.. label has been applied, indicating the team(s) that should QA this change.
  • If applicable, docs team has been notified or an issue has been opened on the documentation repo.
  • If applicable, the need-change/operator and need-change/helm labels have been applied.
  • If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
  • If applicable, the config template has been updated.

}

aggregatorStats := stats["aggregatorStats"]
s, err := checkstats.TranslateEventPlatformEventTypes(aggregatorStats)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already call this function when fetching the status in the pkg/status package.

s, err := checkstats.TranslateEventPlatformEventTypes(stats["aggregatorStats"])

Comment on lines -35 to -39
if forwarderStatsMap, ok := forwarderStats.(map[string]interface{}); ok {
forwarderStatsMap["config"] = stats["config"]
} else {
log.Warn("The Forwarder status format is invalid. Some parts of the `Forwarder` section may be missing.")
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I aggregated all forwarded stats within the same function when fetching the status.

forwarderStatsJSON := []byte(expvar.Get("forwarder").String())
forwarderStats := make(map[string]interface{})
json.Unmarshal(forwarderStatsJSON, &forwarderStats) //nolint:errcheck
forwarderStorageMaxSizeInBytes := config.Datadog.GetInt("forwarder_storage_max_size_in_bytes")
if forwarderStorageMaxSizeInBytes > 0 {
forwarderStats["forwarder_storage_max_size_in_bytes"] = strconv.Itoa(forwarderStorageMaxSizeInBytes)
}
stats["forwarderStats"] = forwarderStats

}

netflowFunc := func() error {
if server.IsEnabled() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move that check to pkg/status GetStatus() function

return nil
}
snmpTrapFunc := func() error {
if traps.IsEnabled(config.Datadog) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move that check to pkg/status GetStatus() function

return renderStatusTemplate(b, "/remoteconfig.tmpl", stats)
}
otlpFunc := func() error {
if otlp.IsDisplayed() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move that check to pkg/status GetStatus() function

Copy link

cit-pr-commenter bot commented Nov 13, 2023

Go Package Import Differences

Baseline: ad3cf2e
Comparison: 05d8059

binaryosarchchange
process-agentlinuxamd64
+0, -64
-github.com/DataDog/agent-payload/v5/contimage
-github.com/DataDog/agent-payload/v5/contlcycle
-github.com/DataDog/agent-payload/v5/cyclonedx_v1_4
-github.com/DataDog/agent-payload/v5/sbom
-github.com/DataDog/datadog-agent/comp/aggregator/demultiplexer
-github.com/DataDog/datadog-agent/comp/aggregator/diagnosesendermanager
-github.com/DataDog/datadog-agent/comp/ndmtmp/forwarder
-github.com/DataDog/datadog-agent/comp/netflow/common
-github.com/DataDog/datadog-agent/comp/netflow/config
-github.com/DataDog/datadog-agent/comp/netflow/flowaggregator
-github.com/DataDog/datadog-agent/comp/netflow/format
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/additionalfields
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/netflowstate
-github.com/DataDog/datadog-agent/comp/netflow/payload
-github.com/DataDog/datadog-agent/comp/netflow/portrollup
-github.com/DataDog/datadog-agent/comp/netflow/server
-github.com/DataDog/datadog-agent/pkg/aggregator
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags_limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/util
-github.com/DataDog/datadog-agent/pkg/epforwarder
-github.com/DataDog/datadog-agent/pkg/logs/auditor
-github.com/DataDog/datadog-agent/pkg/logs/client
-github.com/DataDog/datadog-agent/pkg/logs/client/http
-github.com/DataDog/datadog-agent/pkg/logs/diagnostic
-github.com/DataDog/datadog-agent/pkg/logs/message
-github.com/DataDog/datadog-agent/pkg/logs/sender
-github.com/DataDog/datadog-agent/pkg/networkdevice/metadata
-github.com/DataDog/datadog-agent/pkg/runtime
-github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
-github.com/DataDog/datadog-agent/pkg/snmp/traps
-github.com/DataDog/datadog-agent/pkg/snmp/traps/config
-github.com/DataDog/datadog-agent/pkg/snmp/traps/formatter
-github.com/DataDog/datadog-agent/pkg/snmp/traps/forwarder
-github.com/DataDog/datadog-agent/pkg/snmp/traps/listener
-github.com/DataDog/datadog-agent/pkg/snmp/traps/oid_resolver
-github.com/DataDog/datadog-agent/pkg/snmp/traps/packet
-github.com/DataDog/datadog-agent/pkg/snmp/traps/snmplog
-github.com/DataDog/datadog-agent/pkg/snmp/traps/status
-github.com/DataDog/datadog-agent/pkg/snmp/utils
-github.com/DataDog/datadog-agent/pkg/util/startstop
-github.com/golang/mock/gomock
-github.com/gosnmp/gosnmp
-github.com/libp2p/go-reuseport
-github.com/mattn/go-runewidth
-github.com/netsampler/goflow2/decoders
-github.com/netsampler/goflow2/decoders/netflow
-github.com/netsampler/goflow2/decoders/netflow/templates
-github.com/netsampler/goflow2/decoders/netflow/templates/memory
-github.com/netsampler/goflow2/decoders/netflowlegacy
-github.com/netsampler/goflow2/decoders/sflow
-github.com/netsampler/goflow2/decoders/utils
-github.com/netsampler/goflow2/format
-github.com/netsampler/goflow2/pb
-github.com/netsampler/goflow2/producer
-github.com/netsampler/goflow2/transport
-github.com/netsampler/goflow2/utils
-github.com/olekukonko/tablewriter
-github.com/rivo/uniseg
-go.uber.org/automaxprocs/internal/cgroups
-go.uber.org/automaxprocs/internal/runtime
-go.uber.org/automaxprocs/maxprocs
process-agentlinuxarm64
+0, -64
-github.com/DataDog/agent-payload/v5/contimage
-github.com/DataDog/agent-payload/v5/contlcycle
-github.com/DataDog/agent-payload/v5/cyclonedx_v1_4
-github.com/DataDog/agent-payload/v5/sbom
-github.com/DataDog/datadog-agent/comp/aggregator/demultiplexer
-github.com/DataDog/datadog-agent/comp/aggregator/diagnosesendermanager
-github.com/DataDog/datadog-agent/comp/ndmtmp/forwarder
-github.com/DataDog/datadog-agent/comp/netflow/common
-github.com/DataDog/datadog-agent/comp/netflow/config
-github.com/DataDog/datadog-agent/comp/netflow/flowaggregator
-github.com/DataDog/datadog-agent/comp/netflow/format
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/additionalfields
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/netflowstate
-github.com/DataDog/datadog-agent/comp/netflow/payload
-github.com/DataDog/datadog-agent/comp/netflow/portrollup
-github.com/DataDog/datadog-agent/comp/netflow/server
-github.com/DataDog/datadog-agent/pkg/aggregator
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags_limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/util
-github.com/DataDog/datadog-agent/pkg/epforwarder
-github.com/DataDog/datadog-agent/pkg/logs/auditor
-github.com/DataDog/datadog-agent/pkg/logs/client
-github.com/DataDog/datadog-agent/pkg/logs/client/http
-github.com/DataDog/datadog-agent/pkg/logs/diagnostic
-github.com/DataDog/datadog-agent/pkg/logs/message
-github.com/DataDog/datadog-agent/pkg/logs/sender
-github.com/DataDog/datadog-agent/pkg/networkdevice/metadata
-github.com/DataDog/datadog-agent/pkg/runtime
-github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
-github.com/DataDog/datadog-agent/pkg/snmp/traps
-github.com/DataDog/datadog-agent/pkg/snmp/traps/config
-github.com/DataDog/datadog-agent/pkg/snmp/traps/formatter
-github.com/DataDog/datadog-agent/pkg/snmp/traps/forwarder
-github.com/DataDog/datadog-agent/pkg/snmp/traps/listener
-github.com/DataDog/datadog-agent/pkg/snmp/traps/oid_resolver
-github.com/DataDog/datadog-agent/pkg/snmp/traps/packet
-github.com/DataDog/datadog-agent/pkg/snmp/traps/snmplog
-github.com/DataDog/datadog-agent/pkg/snmp/traps/status
-github.com/DataDog/datadog-agent/pkg/snmp/utils
-github.com/DataDog/datadog-agent/pkg/util/startstop
-github.com/golang/mock/gomock
-github.com/gosnmp/gosnmp
-github.com/libp2p/go-reuseport
-github.com/mattn/go-runewidth
-github.com/netsampler/goflow2/decoders
-github.com/netsampler/goflow2/decoders/netflow
-github.com/netsampler/goflow2/decoders/netflow/templates
-github.com/netsampler/goflow2/decoders/netflow/templates/memory
-github.com/netsampler/goflow2/decoders/netflowlegacy
-github.com/netsampler/goflow2/decoders/sflow
-github.com/netsampler/goflow2/decoders/utils
-github.com/netsampler/goflow2/format
-github.com/netsampler/goflow2/pb
-github.com/netsampler/goflow2/producer
-github.com/netsampler/goflow2/transport
-github.com/netsampler/goflow2/utils
-github.com/olekukonko/tablewriter
-github.com/rivo/uniseg
-go.uber.org/automaxprocs/internal/cgroups
-go.uber.org/automaxprocs/internal/runtime
-go.uber.org/automaxprocs/maxprocs
process-agentwindowsamd64
+0, -64
-github.com/DataDog/agent-payload/v5/contimage
-github.com/DataDog/agent-payload/v5/contlcycle
-github.com/DataDog/agent-payload/v5/cyclonedx_v1_4
-github.com/DataDog/agent-payload/v5/sbom
-github.com/DataDog/datadog-agent/comp/aggregator/demultiplexer
-github.com/DataDog/datadog-agent/comp/aggregator/diagnosesendermanager
-github.com/DataDog/datadog-agent/comp/ndmtmp/forwarder
-github.com/DataDog/datadog-agent/comp/netflow/common
-github.com/DataDog/datadog-agent/comp/netflow/config
-github.com/DataDog/datadog-agent/comp/netflow/flowaggregator
-github.com/DataDog/datadog-agent/comp/netflow/format
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/additionalfields
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/netflowstate
-github.com/DataDog/datadog-agent/comp/netflow/payload
-github.com/DataDog/datadog-agent/comp/netflow/portrollup
-github.com/DataDog/datadog-agent/comp/netflow/server
-github.com/DataDog/datadog-agent/pkg/aggregator
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags_limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/util
-github.com/DataDog/datadog-agent/pkg/epforwarder
-github.com/DataDog/datadog-agent/pkg/logs/auditor
-github.com/DataDog/datadog-agent/pkg/logs/client
-github.com/DataDog/datadog-agent/pkg/logs/client/http
-github.com/DataDog/datadog-agent/pkg/logs/diagnostic
-github.com/DataDog/datadog-agent/pkg/logs/message
-github.com/DataDog/datadog-agent/pkg/logs/sender
-github.com/DataDog/datadog-agent/pkg/networkdevice/metadata
-github.com/DataDog/datadog-agent/pkg/runtime
-github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
-github.com/DataDog/datadog-agent/pkg/snmp/traps
-github.com/DataDog/datadog-agent/pkg/snmp/traps/config
-github.com/DataDog/datadog-agent/pkg/snmp/traps/formatter
-github.com/DataDog/datadog-agent/pkg/snmp/traps/forwarder
-github.com/DataDog/datadog-agent/pkg/snmp/traps/listener
-github.com/DataDog/datadog-agent/pkg/snmp/traps/oid_resolver
-github.com/DataDog/datadog-agent/pkg/snmp/traps/packet
-github.com/DataDog/datadog-agent/pkg/snmp/traps/snmplog
-github.com/DataDog/datadog-agent/pkg/snmp/traps/status
-github.com/DataDog/datadog-agent/pkg/snmp/utils
-github.com/DataDog/datadog-agent/pkg/util/startstop
-github.com/golang/mock/gomock
-github.com/gosnmp/gosnmp
-github.com/libp2p/go-reuseport
-github.com/mattn/go-runewidth
-github.com/netsampler/goflow2/decoders
-github.com/netsampler/goflow2/decoders/netflow
-github.com/netsampler/goflow2/decoders/netflow/templates
-github.com/netsampler/goflow2/decoders/netflow/templates/memory
-github.com/netsampler/goflow2/decoders/netflowlegacy
-github.com/netsampler/goflow2/decoders/sflow
-github.com/netsampler/goflow2/decoders/utils
-github.com/netsampler/goflow2/format
-github.com/netsampler/goflow2/pb
-github.com/netsampler/goflow2/producer
-github.com/netsampler/goflow2/transport
-github.com/netsampler/goflow2/utils
-github.com/olekukonko/tablewriter
-github.com/rivo/uniseg
-go.uber.org/automaxprocs/internal/runtime
-go.uber.org/automaxprocs/maxprocs
-golang.org/x/exp/constraints
process-agentdarwinamd64
+0, -65
-github.com/DataDog/agent-payload/v5/contimage
-github.com/DataDog/agent-payload/v5/contlcycle
-github.com/DataDog/agent-payload/v5/cyclonedx_v1_4
-github.com/DataDog/agent-payload/v5/sbom
-github.com/DataDog/datadog-agent/comp/aggregator/demultiplexer
-github.com/DataDog/datadog-agent/comp/aggregator/diagnosesendermanager
-github.com/DataDog/datadog-agent/comp/ndmtmp/forwarder
-github.com/DataDog/datadog-agent/comp/netflow/common
-github.com/DataDog/datadog-agent/comp/netflow/config
-github.com/DataDog/datadog-agent/comp/netflow/flowaggregator
-github.com/DataDog/datadog-agent/comp/netflow/format
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/additionalfields
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/netflowstate
-github.com/DataDog/datadog-agent/comp/netflow/payload
-github.com/DataDog/datadog-agent/comp/netflow/portrollup
-github.com/DataDog/datadog-agent/comp/netflow/server
-github.com/DataDog/datadog-agent/pkg/aggregator
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags_limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/util
-github.com/DataDog/datadog-agent/pkg/epforwarder
-github.com/DataDog/datadog-agent/pkg/logs/auditor
-github.com/DataDog/datadog-agent/pkg/logs/client
-github.com/DataDog/datadog-agent/pkg/logs/client/http
-github.com/DataDog/datadog-agent/pkg/logs/diagnostic
-github.com/DataDog/datadog-agent/pkg/logs/message
-github.com/DataDog/datadog-agent/pkg/logs/sender
-github.com/DataDog/datadog-agent/pkg/networkdevice/metadata
-github.com/DataDog/datadog-agent/pkg/runtime
-github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
-github.com/DataDog/datadog-agent/pkg/snmp/traps
-github.com/DataDog/datadog-agent/pkg/snmp/traps/config
-github.com/DataDog/datadog-agent/pkg/snmp/traps/formatter
-github.com/DataDog/datadog-agent/pkg/snmp/traps/forwarder
-github.com/DataDog/datadog-agent/pkg/snmp/traps/listener
-github.com/DataDog/datadog-agent/pkg/snmp/traps/oid_resolver
-github.com/DataDog/datadog-agent/pkg/snmp/traps/packet
-github.com/DataDog/datadog-agent/pkg/snmp/traps/snmplog
-github.com/DataDog/datadog-agent/pkg/snmp/traps/status
-github.com/DataDog/datadog-agent/pkg/snmp/utils
-github.com/DataDog/datadog-agent/pkg/util/startstop
-github.com/golang/mock/gomock
-github.com/gosnmp/gosnmp
-github.com/libp2p/go-reuseport
-github.com/mattn/go-runewidth
-github.com/netsampler/goflow2/decoders
-github.com/netsampler/goflow2/decoders/netflow
-github.com/netsampler/goflow2/decoders/netflow/templates
-github.com/netsampler/goflow2/decoders/netflow/templates/memory
-github.com/netsampler/goflow2/decoders/netflowlegacy
-github.com/netsampler/goflow2/decoders/sflow
-github.com/netsampler/goflow2/decoders/utils
-github.com/netsampler/goflow2/format
-github.com/netsampler/goflow2/pb
-github.com/netsampler/goflow2/producer
-github.com/netsampler/goflow2/transport
-github.com/netsampler/goflow2/utils
-github.com/olekukonko/tablewriter
-github.com/rivo/uniseg
-github.com/sirupsen/logrus
-go.uber.org/automaxprocs/internal/runtime
-go.uber.org/automaxprocs/maxprocs
-golang.org/x/exp/constraints
process-agentdarwinarm64
+0, -65
-github.com/DataDog/agent-payload/v5/contimage
-github.com/DataDog/agent-payload/v5/contlcycle
-github.com/DataDog/agent-payload/v5/cyclonedx_v1_4
-github.com/DataDog/agent-payload/v5/sbom
-github.com/DataDog/datadog-agent/comp/aggregator/demultiplexer
-github.com/DataDog/datadog-agent/comp/aggregator/diagnosesendermanager
-github.com/DataDog/datadog-agent/comp/ndmtmp/forwarder
-github.com/DataDog/datadog-agent/comp/netflow/common
-github.com/DataDog/datadog-agent/comp/netflow/config
-github.com/DataDog/datadog-agent/comp/netflow/flowaggregator
-github.com/DataDog/datadog-agent/comp/netflow/format
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/additionalfields
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/netflowstate
-github.com/DataDog/datadog-agent/comp/netflow/payload
-github.com/DataDog/datadog-agent/comp/netflow/portrollup
-github.com/DataDog/datadog-agent/comp/netflow/server
-github.com/DataDog/datadog-agent/pkg/aggregator
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags_limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/util
-github.com/DataDog/datadog-agent/pkg/epforwarder
-github.com/DataDog/datadog-agent/pkg/logs/auditor
-github.com/DataDog/datadog-agent/pkg/logs/client
-github.com/DataDog/datadog-agent/pkg/logs/client/http
-github.com/DataDog/datadog-agent/pkg/logs/diagnostic
-github.com/DataDog/datadog-agent/pkg/logs/message
-github.com/DataDog/datadog-agent/pkg/logs/sender
-github.com/DataDog/datadog-agent/pkg/networkdevice/metadata
-github.com/DataDog/datadog-agent/pkg/runtime
-github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
-github.com/DataDog/datadog-agent/pkg/snmp/traps
-github.com/DataDog/datadog-agent/pkg/snmp/traps/config
-github.com/DataDog/datadog-agent/pkg/snmp/traps/formatter
-github.com/DataDog/datadog-agent/pkg/snmp/traps/forwarder
-github.com/DataDog/datadog-agent/pkg/snmp/traps/listener
-github.com/DataDog/datadog-agent/pkg/snmp/traps/oid_resolver
-github.com/DataDog/datadog-agent/pkg/snmp/traps/packet
-github.com/DataDog/datadog-agent/pkg/snmp/traps/snmplog
-github.com/DataDog/datadog-agent/pkg/snmp/traps/status
-github.com/DataDog/datadog-agent/pkg/snmp/utils
-github.com/DataDog/datadog-agent/pkg/util/startstop
-github.com/golang/mock/gomock
-github.com/gosnmp/gosnmp
-github.com/libp2p/go-reuseport
-github.com/mattn/go-runewidth
-github.com/netsampler/goflow2/decoders
-github.com/netsampler/goflow2/decoders/netflow
-github.com/netsampler/goflow2/decoders/netflow/templates
-github.com/netsampler/goflow2/decoders/netflow/templates/memory
-github.com/netsampler/goflow2/decoders/netflowlegacy
-github.com/netsampler/goflow2/decoders/sflow
-github.com/netsampler/goflow2/decoders/utils
-github.com/netsampler/goflow2/format
-github.com/netsampler/goflow2/pb
-github.com/netsampler/goflow2/producer
-github.com/netsampler/goflow2/transport
-github.com/netsampler/goflow2/utils
-github.com/olekukonko/tablewriter
-github.com/rivo/uniseg
-github.com/sirupsen/logrus
-go.uber.org/automaxprocs/internal/runtime
-go.uber.org/automaxprocs/maxprocs
-golang.org/x/exp/constraints
heroku-process-agentlinuxamd64
+0, -65
-github.com/DataDog/agent-payload/v5/contimage
-github.com/DataDog/agent-payload/v5/contlcycle
-github.com/DataDog/agent-payload/v5/cyclonedx_v1_4
-github.com/DataDog/agent-payload/v5/sbom
-github.com/DataDog/datadog-agent/comp/aggregator/demultiplexer
-github.com/DataDog/datadog-agent/comp/aggregator/diagnosesendermanager
-github.com/DataDog/datadog-agent/comp/ndmtmp/forwarder
-github.com/DataDog/datadog-agent/comp/netflow/common
-github.com/DataDog/datadog-agent/comp/netflow/config
-github.com/DataDog/datadog-agent/comp/netflow/flowaggregator
-github.com/DataDog/datadog-agent/comp/netflow/format
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/additionalfields
-github.com/DataDog/datadog-agent/comp/netflow/goflowlib/netflowstate
-github.com/DataDog/datadog-agent/comp/netflow/payload
-github.com/DataDog/datadog-agent/comp/netflow/portrollup
-github.com/DataDog/datadog-agent/comp/netflow/server
-github.com/DataDog/datadog-agent/pkg/aggregator
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/tags_limiter
-github.com/DataDog/datadog-agent/pkg/aggregator/internal/util
-github.com/DataDog/datadog-agent/pkg/epforwarder
-github.com/DataDog/datadog-agent/pkg/logs/auditor
-github.com/DataDog/datadog-agent/pkg/logs/client
-github.com/DataDog/datadog-agent/pkg/logs/client/http
-github.com/DataDog/datadog-agent/pkg/logs/diagnostic
-github.com/DataDog/datadog-agent/pkg/logs/message
-github.com/DataDog/datadog-agent/pkg/logs/sender
-github.com/DataDog/datadog-agent/pkg/networkdevice/metadata
-github.com/DataDog/datadog-agent/pkg/runtime
-github.com/DataDog/datadog-agent/pkg/snmp/gosnmplib
-github.com/DataDog/datadog-agent/pkg/snmp/traps
-github.com/DataDog/datadog-agent/pkg/snmp/traps/config
-github.com/DataDog/datadog-agent/pkg/snmp/traps/formatter
-github.com/DataDog/datadog-agent/pkg/snmp/traps/forwarder
-github.com/DataDog/datadog-agent/pkg/snmp/traps/listener
-github.com/DataDog/datadog-agent/pkg/snmp/traps/oid_resolver
-github.com/DataDog/datadog-agent/pkg/snmp/traps/packet
-github.com/DataDog/datadog-agent/pkg/snmp/traps/snmplog
-github.com/DataDog/datadog-agent/pkg/snmp/traps/status
-github.com/DataDog/datadog-agent/pkg/snmp/utils
-github.com/DataDog/datadog-agent/pkg/util/startstop
-github.com/golang/mock/gomock
-github.com/gosnmp/gosnmp
-github.com/libp2p/go-reuseport
-github.com/mattn/go-runewidth
-github.com/netsampler/goflow2/decoders
-github.com/netsampler/goflow2/decoders/netflow
-github.com/netsampler/goflow2/decoders/netflow/templates
-github.com/netsampler/goflow2/decoders/netflow/templates/memory
-github.com/netsampler/goflow2/decoders/netflowlegacy
-github.com/netsampler/goflow2/decoders/sflow
-github.com/netsampler/goflow2/decoders/utils
-github.com/netsampler/goflow2/format
-github.com/netsampler/goflow2/pb
-github.com/netsampler/goflow2/producer
-github.com/netsampler/goflow2/transport
-github.com/netsampler/goflow2/utils
-github.com/olekukonko/tablewriter
-github.com/rivo/uniseg
-github.com/sirupsen/logrus
-go.uber.org/automaxprocs/internal/cgroups
-go.uber.org/automaxprocs/internal/runtime
-go.uber.org/automaxprocs/maxprocs

@GustavoCaso GustavoCaso changed the title Update status templates key access Update status/render package to only handle rendering logic Nov 13, 2023
@GustavoCaso GustavoCaso force-pushed the update-status-templates-key-access branch from d83219a to 125e8da Compare November 13, 2023 18:20
Copy link
Member

@hush-hush hush-hush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few comment, but looks good overall

pkg/status/render/templates/aggregator.tmpl Show resolved Hide resolved
pkg/status/render/templates/endpoints.tmpl Show resolved Hide resolved
pkg/status/render/templates/process-agent.tmpl Outdated Show resolved Hide resolved
@GustavoCaso GustavoCaso force-pushed the extract-render-subpackge-from-status branch from 58dec94 to fe628cc Compare November 15, 2023 16:34
@GustavoCaso GustavoCaso requested review from a team as code owners November 15, 2023 16:34
@GustavoCaso GustavoCaso force-pushed the update-status-templates-key-access branch from 125e8da to 7b13bb5 Compare November 15, 2023 17:12
@GustavoCaso GustavoCaso added this to the 7.51.0 milestone Nov 16, 2023
@GustavoCaso GustavoCaso force-pushed the extract-render-subpackge-from-status branch from 5f9922f to 65ca3d3 Compare November 17, 2023 12:10
@GustavoCaso GustavoCaso force-pushed the update-status-templates-key-access branch from 7b13bb5 to 747e70e Compare November 17, 2023 17:42
@GustavoCaso GustavoCaso force-pushed the extract-render-subpackge-from-status branch from 65ca3d3 to 7d61e71 Compare November 20, 2023 11:44
@GustavoCaso GustavoCaso changed the title Update status/render package to only handle rendering logic [ASCII-145] Update status/render package to only handle rendering logic Nov 20, 2023
Base automatically changed from extract-render-subpackge-from-status to main November 20, 2023 17:00
@GustavoCaso GustavoCaso force-pushed the update-status-templates-key-access branch from 747e70e to 1b08647 Compare November 20, 2023 17:14
@GustavoCaso GustavoCaso changed the title [ASCII-145] Update status/render package to only handle rendering logic [ASCII-145] Update pkg/status/render to only handle rendering logic Nov 20, 2023
@GustavoCaso GustavoCaso force-pushed the update-status-templates-key-access branch from 1b08647 to 6c8847a Compare November 20, 2023 18:22
@GustavoCaso GustavoCaso force-pushed the update-status-templates-key-access branch from 7134c88 to 05d8059 Compare November 22, 2023 09:00
@GustavoCaso GustavoCaso merged commit d1453b1 into main Nov 23, 2023
141 checks passed
@GustavoCaso GustavoCaso deleted the update-status-templates-key-access branch November 23, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants